<html>
<body>

<?php
	
	$name = $_POST['newFileName'];
	if (isset($_POST['recipient'])){
		$recipient = $_POST['recipient'];
	} else {
		$recipient = 0;
	}
	$message_name = $_POST['message_name'];
//echo "name: $name</br>";
//echo "to: $recipient</br>";
//echo "message-name: $message_name</br>";

	
	$host = "$server";
echo "
<html>

<head>
<meta http-equiv=\"Content-Language\" content=\"en-us\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
<title>Voice Recorder</title>
</head>

<body>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1055\" height=\"799\">
	<!-- MSTableType=\"layout\" -->
	<tr>
		<td valign=\"top\" colspan=\"3\" height=\"138\">
		<!-- MSCellType=\"ContentHead\" -->
		<p align=\"center\">&nbsp;</p>
		<h1 align=\"center\"><font color=\"#000080\">Voice Messenger</font></h1>
		<h2 align=\"center\"><font color=\"#0000FF\">Message Recorder Center</font></h2>
		</td>
	</tr>
	<tr>
		<td valign=\"top\" width=\"350\" rowspan=\"2\">
		<!-- MSCellType=\"NavBody\" -->
		&nbsp;<font size=\"4\" color=\"#000080\"><u><b>How do I use This Recorder</b></u>?</font><ol>
			<li><font size=\"4\" color=\"#000080\">You will be notified that a 
			signed java applet is starting, published by &quot;Voice Messenger&quot;. <b>
			Approve it</b>.</font></li>
			<li><font size=\"4\" color=\"#000080\"><b>Click on the grey box on the right (the applet) once</b> 
			to enable it.</font></li>
			<li><font size=\"4\" color=\"#000080\">Click <b>Record</b> to start 
			recording.</font></li>
			<li><font size=\"4\" color=\"#000080\"><b>Talk</b>.</font></li>
			<li><font size=\"4\" color=\"#000080\">Click <b>stop</b> to stop 
			recording and hear your message. </font></li>
			<li><font size=\"4\" color=\"#000080\">Click &quot;<b>Play Again</b>&quot; if you 
			want to hear your message again.</font></li>
			<li><font size=\"4\" color=\"#000080\">If you don't like it, you can 
			record again by clicking &quot;<b>Don't Like It</b>&quot; and then going back 
			to step 3.</font></li>
			<li><font size=\"4\" color=\"#000080\">If you like your message click &quot;<b>Upload</b>&quot; and wait for the file to be transferred to the server.</font></li>
			<li><font size=\"4\" color=\"#000080\">When you have finished click on &quot;<b>It's a Keeper</b>&quot; to chose your recipients.</font></li>
			<li><font size=\"4\" color=\"#000080\">If you changed your mind, and 
			want to go back, click &quot;<b>Nothing Good Will Come Of It</b>&quot;.</font></li>
		</ol>
		<p>&nbsp;</p>
		<p>&nbsp;</p>
		<p>&nbsp;</td>
		<td valign=\"top\" height=\"421\">
		<!-- MSCellType=\"ContentBody\" -->
		&nbsp;<p>&nbsp;</p>
		<p align=\"center\">
		<applet code=SoundRecorderClient.class 
			archive = SoundRecorderClient.jar
   			width=400 height=100>
   			<param name=\"filename\" value=\"$name\">
			</applet></p>
		<p align=\"center\">&nbsp;</p>


<form id=\"approve\" action=\"http://apps.facebook.com/voicemessenger/send.php\" method=\"post\">
<input type=\"hidden\" name=\"new\" value=\"1\"/>
<input type=\"hidden\" name=\"newFileName\" value=\"$name\"/>
<input type=\"hidden\" name=\"recipient\" value=\"$recipient\"/>
<input type=\"hidden\" name=\"message_name\" value=\"$message_name\"/>
<p align=\"center\">
<input type=\"submit\" value=\"It's a Keeper!\" name=\"B1\" style=\"color: #FFFFFF; width: 200; height: 35; background-color: #3b5998\"></p>
</form>";

echo "
		<form method=\"POST\" action=\"http://apps.facebook.com/voicemessenger/sendMessage.php\">
			<p align=\"center\">
			<input type=\"hidden\" name=\"newFileName\" value=\"$name\"/>
			<input type=\"submit\" value=\"Nothing Good Will Come Of It\" name=\"B1\" style=\"color: #FFFFFF; width: 200; height: 35; background-color: #3b5998\"></p>		</form>
		<p align=\"center\">&nbsp;</td>
		<td valign=\"top\" width=\"354\" rowspan=\"2\">
		<!-- MSCellType=\"NavBody2\" -->
		&nbsp;</td>
	</tr>
	<tr>
		<td height=\"170\" width=\"351\" valign=\"top\">
		<p align=\"center\">&nbsp;</p>
		<p align=\"center\">&nbsp;</p>
		<h3 align=\"center\"><font color=\"#000080\">Message Name: $message_name</font></h3>
		</td>
	</tr>
	<tr>
		<td valign=\"top\" colspan=\"3\" height=\"70\">
		<!-- MSCellType=\"ContentFoot\" -->
		&nbsp;</td>
	</tr>
</table>

</body>
";




?>
</br>
This application participates in Unicell's contest. <a href="http://www.liveface.co.il/%D7%AA%D7%97%D7%A8%D7%95%D7%AA-%D7%90%D7%A4%D7%9C%D7%99%D7%A7%D7%A6%D7%99%D7%95%D7%AA-%D7%A4%D7%99%D7%99%D7%A1%D7%91%D7%95%D7%A7/apps/" > For rating and other applications. </a>
</html>


